package com.learn.springboot3.controller.dto;

import org.springframework.web.multipart.MultipartFile;

/**
 * ClassName: FileUploadDto
 * Package: com.learn.springboot3.controller.dto
 * Description:
 *
 * @Author jiangcheng
 * @Create 2024/9/29 9:43
 * @Version 1.0
 */


public class FileUploadDto {

    //当前块MD5值
    private String chunkFileMd5;

    // 文件Md5
    private String fileMd5;

    // 文件上传当前块
    private Integer currentChunkSize;

    //当前文件总块数
    private Integer totalChunks;

    // 文件
    private MultipartFile file;

    public String getChunkFileMd5() {
        return chunkFileMd5;
    }

    public void setChunkFileMd5(String chunkFileMd5) {
        this.chunkFileMd5 = chunkFileMd5;
    }

    public String getFileMd5() {
        return fileMd5;
    }

    public void setFileMd5(String fileMd5) {
        this.fileMd5 = fileMd5;
    }

    public Integer getCurrentChunkSize() {
        return currentChunkSize;
    }

    public void setCurrentChunkSize(Integer currentChunkSize) {
        this.currentChunkSize = currentChunkSize;
    }

    public Integer getTotalChunks() {
        return totalChunks;
    }

    public void setTotalChunks(Integer totalChunks) {
        this.totalChunks = totalChunks;
    }

    public MultipartFile getFile() {
        return file;
    }

    public void setFile(MultipartFile file) {
        this.file = file;
    }
}
